package cn.yujiago.miaosha.mapper;

import cn.yujiago.miaosha.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {

    @Select("SELECT * FROM user WHERE username = #{username} and password = #{password}")
    User selectUser(@Param("username") String username, @Param("password") String password);

}
